package com.zuihai.app.mvp.ui.widget;

import android.content.Context;
import android.view.View;

/**
 * Created by Panda_Program on 2018/1/26 0026.
 */

public class TestView extends View {
    public TestView(Context context) {
        super(context);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        setMeasuredDimension(
                getDefaultSize(
                        getSuggestedMinimumWidth(),widthMeasureSpec),
                getDefaultSize(
                        getSuggestedMinimumHeight(),heightMeasureSpec));
    }
}
